package Test;

public class insert {
    public static void main(String[] args) {
        int[] socres = new int[7];
        socres[0] = 90;
        socres[1] = 80;
        socres[2] = 70;



    }
    private static void sert ( int arg[]){
        int index = -1;
        int temp = 95;
        for (int i = 0; i < arg.length; i++) {
            if (arg[i] ==0){
                index = i;
                break;
            }
        }
        if (index != -1) {
            arg[index] = temp;

        }
    }
}
